<?php
/**
 * IWpView.php
 * 
 * This file contains the interface IWpView to be used for all types of views
 * @author Robert Schmidt <robert@wildpack.de>
 * @version 1.0
 * @package wildpack
 * @subpackage mvc.view
 */


/**
 * The interface to be used for all types of responses
 * @author Robert Schmidt <robert@wildpack.de>
 * @version 1.0
 * @package wildpack
 * @subpackage mvc.view
 */
interface IWpView
{
	/**
	 * Assigns data to the view
	 * @param mixed $data The data to assign to the view
	 */
	function assign($data);
	
	/**
	 * Renders the view and returns the content
	 * @param object $viewname[optional] The name of the view to render
	 * @return string The rendered view as string
	 */
	function fetch($viewname = '');
	
	/**
	 * Renders the view
	 * @param string $viewname The name of the view to render
	 * @param object $response The response to write the rendered view to
	 */
	function render($response);
	
	/**
	 * Specifies the name of the view to use
	 * @param string $viewname The name of the view to use
	 */
	function setViewname($viewname);
}

/* End of file IWpView.php */
/* Location: ./wildpack/mvc/view/IWpView.php */
 